package com.adam.management.mapper;
import com.adam.management.model.RoleDTO;
import com.adam.management.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.adam.management.dto.SysMenuDTO;

import java.util.List;

/**
 * @projectName: adam-management-system
 * @description:
 * @author: Adam
 * @create: 2019-10-16 13:53
 **/
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenuDTO> selectLists();

    List<SysMenuDTO> selectListByRoleId(List<RoleDTO> roleDTO);

    int updateSelectiveByPrimaryKey(SysMenuDTO sysMenuDTO);

    Integer addList(SysMenu sysMenu);

    List<SysMenuDTO> compareDate(SysMenu sysMenu);
}
